//
//  HomeCycleModel.h
//  Rail
//
//  Created by hychen on 2018/3/10.
//  Copyright © 2018年 Hychen. All rights reserved.
//

#import "BaseModel.h"

@interface NewsModel : BaseModel
@property (nonatomic, copy) NSString *newsid;
@property (nonatomic, copy) NSString *title;
@property (nonatomic, copy) NSString *content;
@property (nonatomic, copy) NSString *publish_time;
@property (nonatomic, copy) NSString *content_url;
@property (nonatomic, copy) NSString *publisher;
@property (nonatomic, copy) NSString *account;
@end

@interface NewsDirModel : NSObject
@property (nonatomic, copy) NSString *dirid;
@property (nonatomic, copy) NSString *dir_name;
@property (nonatomic, copy) NSString *logo_url;
@property (nonatomic, strong) NSArray<NewsModel *> *list;
@end

@interface WarnModel : BaseModel
@property (nonatomic, copy) NSString *recordid;
@property (nonatomic, copy) NSString *areaid;
@property (nonatomic, copy) NSString *deviceid;
//通道编号
@property (nonatomic, copy) NSString *ch_no;
@property (nonatomic, copy) NSString *content;
//@property (nonatomic, assign) WarnType alert_type;
@property (nonatomic, copy) NSString *alert_type;
@property (nonatomic, copy) NSString *start_time;

@end


@interface NoticeModel : BaseModel
@property (nonatomic, copy) NSString *noticeid;
@property (nonatomic, copy) NSString *title;
//html
@property (nonatomic, copy) NSString *content;
@property (nonatomic, copy) NSString *publish_time;
@property (nonatomic, copy) NSString *content_url;
@property (nonatomic, copy) NSString *publisher;
@property (nonatomic, copy) NSString *account;

@property (nonatomic, assign) BOOL read;
@end

@interface WorkAreaModel : BaseModel
@property (nonatomic, copy) NSString *areaid;
@property (nonatomic, copy) NSString *area_name;
@property (nonatomic, copy) NSString *lineid;
@property (nonatomic, copy) NSString *sectionid;
@property (nonatomic, copy) NSString *stationid;
@property (nonatomic, assign) WorkAreaStatus status;
@property (nonatomic, copy) NSString *op_time;
@property (nonatomic, copy) NSString *device_count;
@property (nonatomic, copy) NSString *device_online_count;
@property (nonatomic, copy) NSString *device_offline_count;
@property (nonatomic, copy) NSString *online_count;
@property (nonatomic, copy) NSString *workuser_count;
@property (nonatomic, copy) NSString *supervisor_count;
@property (nonatomic, copy) NSString *manger_count;
@property (nonatomic, copy) NSString *owner_count;
@property (nonatomic, copy) NSString *other_count;
@property (nonatomic, copy) NSString *favid;
@property (nonatomic, assign) BOOL is_fav;
@end

@interface HomeCycleModel : BaseModel
@property (nonatomic, copy) NSString *title;
@property (nonatomic, copy) NSString *img_url;
@property (nonatomic, copy) NSString *jump_url;
//连接类型 0应用连接 1外部链接 2无
@property (nonatomic, copy) NSString *link_type;
@property (nonatomic, copy) NSString *order_num;
@end

@interface HomeVideoHistoryModel : BaseModel
@property (nonatomic, copy) NSString *area_name;
@property (nonatomic, copy) NSString *device_name;
@property (nonatomic, copy) NSString *areaid;
@property (nonatomic, copy) NSString *snapshot_url;
@property (nonatomic, copy) NSString *deviceid;
@end

@interface HomeDataModel :BaseModel
@property (nonatomic, strong) NSArray *image_list;
@property (nonatomic, strong) NSArray *workarea_list;
@property (nonatomic, strong) NSArray *notice_list;
@property (nonatomic, strong) NSArray *alert_list;
@property (nonatomic, strong) NSArray *news_list;
@property (nonatomic, strong) NSArray *video_history_list;
@end


